package com.xinjie.www.service.comment;

import com.xinjie.www.po.Comment;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface CommentService {
    public List<Comment> getComment(int post) throws SQLException, ClassNotFoundException;
    public List<Comment> getManagerComment(String tieba) throws SQLException, ClassNotFoundException;
    public boolean writeComment(int postId, int userId, String content, String time) throws SQLException, ClassNotFoundException;
    public List<Comment> getOwnComment(int userId) throws SQLException, ClassNotFoundException;
    public boolean deleteOwnComment(int commentId, int postId) throws SQLException, ClassNotFoundException;
}
